﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/admin_page.master" CodeBehind="productbrand_edit.aspx.cs" Inherits="YXShop.Web.admin.product.productbrand_edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script type="text/javascript">
        function BrandImageType(str)
        {
           if(str=="1")
           {
               document.getElementById("<%=trAddress.ClientID %>").style.display="none";
               document.getElementById("<%=trHttp.ClientID %>").style.display="";
           }
           else
           {
               document.getElementById("<%=trAddress.ClientID%>").style.display="";
               document.getElementById("<%=trHttp.ClientID%>").style.display="none";
           }
           
        }
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">商品品牌
    <asp:Button ID="button1" runat="server" CssClass="inputbutton" onclick="LinkButton1_Click" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink1" runat="server"  CssClass="inputbutton" NavigateUrl="productbrand_list.aspx" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">添加或编辑商品品牌 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
     <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
		    <td class="form_table_input_info">品牌名称：</td>
		    <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtNameTip" runat="server"></asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">描述：
            </td>
		    <td>
                <asp:TextBox ID="txtDescription"  TextMode="MultiLine" runat="server"></asp:TextBox>
            </td>
		    <td>
                <div class="msgNormal">输入商品描述.</div>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">品牌图片类型：</td>
		    <td colspan="2">
                <asp:RadioButtonList ID="rblBrandImagesType" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Text="网络地址" onclick="BrandImageType('1')" />
                    <asp:ListItem Value="0" Text="本地上传" Selected="True"  onclick="BrandImageType('2')"/>
                </asp:RadioButtonList>
            </td>
	    </tr>
	    <tr id="trAddress" runat="server">
		    <td class="form_table_input_info">品牌图片：</td>
		    <td>
                <asp:FileUpload ID="fuBrandImages" runat="server" />
            </td>
            <td>
                <div class="msgNormal">上传本地图片</div>
            </td>
	    </tr>
	    <tr id="trHttp" style="display:none" runat="server">
		    <td class="form_table_input_info">网址：</td>
		    <td>
                <asp:TextBox ID="txtHttp" runat="server"></asp:TextBox>
            </td>
            <td>
                <div class="msgNormal">输入网址请以http://开头</div>
            </td>
	    </tr>
        <tr>
		    <td class="form_table_input_info">排列顺序：
            </td>
		    <td>
                <asp:TextBox ID="txtSort" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtSortTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">是否推荐：
            </td>
		    <td>
                <asp:RadioButtonList ID="rdolstIsRecommend" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Text="是" />
                    <asp:ListItem Value="0" Text="否" Selected="True" />
                </asp:RadioButtonList>
            </td>
		    <td>
                <asp:Panel ID="Panel2" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">商品关联类型：
            </td>
		    <td colspan="2">
                <asp:CheckBoxList ID="cblProductType" runat="server" RepeatDirection="Horizontal" RepeatColumns="7">
                </asp:CheckBoxList>
            </td>
	    </tr>
    </table>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="button2" runat="server" CssClass="inputbutton" onclick="LinkButton1_Click" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink2" runat="server"  CssClass="inputbutton" NavigateUrl="productbrand_list.aspx" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>